package com.uls.hj.service.impl;

import java.util.List;

import com.uls.hj.vo.VenueCountVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.uls.hj.mapper.HjVenuesMapper;
import com.uls.hj.domain.HjVenues;
import com.uls.hj.service.IHjVenuesService;

/**
 * 场馆Service业务层处理
 * 
 * @author hj
 * @date 2024-11-07
 */
@Service
public class HjVenuesServiceImpl implements IHjVenuesService 
{
    @Autowired
    private HjVenuesMapper hjVenuesMapper;

    /**
     * 查询场馆
     * 
     * @param venueId 场馆主键
     * @return 场馆
     */
    @Override
    public HjVenues selectHjVenuesByVenueId(Long venueId)
    {
        return hjVenuesMapper.selectHjVenuesByVenueId(venueId);
    }

    /**
     * 查询场馆列表
     * 
     * @param hjVenues 场馆
     * @return 场馆
     */
    @Override
    public List<HjVenues> selectHjVenuesList(HjVenues hjVenues)
    {
        return hjVenuesMapper.selectHjVenuesList(hjVenues);
    }

    /**
     * 新增场馆
     * 
     * @param hjVenues 场馆
     * @return 结果
     */
    @Override
    public int insertHjVenues(HjVenues hjVenues)
    {
        return hjVenuesMapper.insertHjVenues(hjVenues);
    }

    /**
     * 修改场馆
     * 
     * @param hjVenues 场馆
     * @return 结果
     */
    @Override
    public int updateHjVenues(HjVenues hjVenues)
    {
        return hjVenuesMapper.updateHjVenues(hjVenues);
    }

    /**
     * 批量删除场馆
     * 
     * @param venueIds 需要删除的场馆主键
     * @return 结果
     */
    @Override
    public int deleteHjVenuesByVenueIds(Long[] venueIds)
    {
        return hjVenuesMapper.deleteHjVenuesByVenueIds(venueIds);
    }

    /**
     * 删除场馆信息
     * 
     * @param venueId 场馆主键
     * @return 结果
     */
    @Override
    public int deleteHjVenuesByVenueId(Long venueId)
    {
        return hjVenuesMapper.deleteHjVenuesByVenueId(venueId);
    }

    /**
     * 查询所有可预约场馆信息
     *
     * @param status
     * @return
     */
    @Override
    public List<HjVenues> selectHjVenuesListByStatus(int status) {
        return hjVenuesMapper.selectHjVenuesListByStatus(status);
    }

    @Override
    public List<VenueCountVo> countSchedule() {
        return hjVenuesMapper.countSchedule();
    }
}
